#include "../include/connection.h"
#include <stdlib.h>

connection_t *connection_create(int clientfd){
    connection_t *connection=(connection_t*)malloc(sizeof(connection_t));
    connection->clientfd=clientfd;
    connection->node=NULL;
    connection->status=connection_idle;
    return connection;
}

void connection_destory(connection_t *connection){
    free(connection);
}
